package com.hdwe.tools.pm.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.constant.CacheNames;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

/**
 * @author s
 * @date 2024/12/18
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseEntityVO extends BaseEntity {

    /**
     * 创建人名称
     */
    @TableField(exist = false)
//    @Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy")
    @Translation(type = TransConstant.COMBOBOX_KEY_TO_LABEL, mapper = "createBy", other = CacheNames.COMBOBOX_USER)
    private String createByName;

    /**
     * 修改人名称
     */
    @TableField(exist = false)
//    @Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "updateBy")
    @Translation(type = TransConstant.COMBOBOX_KEY_TO_LABEL, mapper = "updateBy", other = CacheNames.COMBOBOX_USER)
    private String updateByName;

    /**
     * 创建部门名称
     */
    @TableField(exist = false)
//    @Translation(type = TransConstant.DEPT_ID_TO_NAME, mapper = "createDept")
    @Translation(type = TransConstant.COMBOBOX_KEY_TO_LABEL, mapper = "createDept", other = CacheNames.COMBOBOX_DEPT)
    private String createDeptName;

}
